<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?>


	<?php 
		//print_r ($this->input->post());
		
		echo form_fieldset('Ubah data pendaftaran ITB Junior Programming Contest 2011',array('class' => 'form'));
		
		echo form_open('jpc/validasi',array('class' => 'inline'));
		//$req= "<span id='req'> * </span>";
		$req = '';
		echo form_label('Nama lengkap anda','jpc_nama');
		echo form_error('jpc_nama');
		echo form_input('jpc_nama', $userdata->jpc_nama);
	
		echo form_label('Nomor ponsel anda','jpc_nohp');
		echo form_error('jpc_nohp');
		echo form_input('jpc_nohp', $userdata->jpc_nohp);
		
		echo form_label('Alamat email anda','jpc_email');
		echo form_error('jpc_email');
		echo form_input('jpc_email', $userdata->jpc_email);

		echo form_label('Kelas <span id="reg_rule">terhitung dari 1 Oktober 2011<br/>Masukkan Kelas dan jurusan misal : XII IPA, IX, dan lain-lain.</span>','jpc_kelas');
		echo form_error('jpc_kelas');
		echo form_input('jpc_kelas', $userdata->jpc_kelas);

		
		echo form_label('Nama sekolah','jpc_nama_sek');
		echo form_error('jpc_nama_sek');
		echo form_input('jpc_nama_sek', $userdata->jpc_nama_sek);
		
		echo form_label('Alamat sekolah','jpc_alamat_sek');
		echo form_error('jpc_alamat_sek');
		echo form_textarea('jpc_alamat_sek',$userdata->jpc_alamat_sek);
		
		echo form_label('Nama lengkap pembimbing','jpc_pembimbing');
		echo form_error('jpc_pembimbing');
		echo form_input('jpc_pembimbing', $userdata->jpc_pembimbing);
		
		
		echo form_fieldset('Ubah password (optional)',array('class' => 'passchange'));
		echo form_label('Masukkan password lama anda','old_password');
		echo form_error('old_password');
		echo form_password('old_password');
		
		echo form_label('Masukkan password baru yang diinginkan','new_password');
		echo form_error('new_password');
		echo form_password('new_password');
		
		echo form_label('Konfirmasi password baru yang diinginkan','new_password_2');
		echo form_error('new_password_2');
		echo form_password('new_password_2');
	
		echo form_fieldset_close(); 
		
		
		echo '<br/>';
		
		echo form_submit(array(
				'name' => 'data_valid',
				'class' => 'edit')
				, 'Ubah data pendaftaran');
		echo form_close();
	
		echo form_open('jpc/index',array('class' => 'inline'));
		echo form_submit(array(
				'name' => 'action',
				'class' => 'button_n')
				, 'Kembali');
		echo form_close();
		
		echo form_fieldset_close(); 
	
	?>